package com.yzh.animal;

/**
 * @author 于振晗
 * @title: Cat
 * @description: TODO 猫类
 * @date 2020年08月25日
 * @path com.yzh.animal
 */
public class Cat extends Animal {
    private double eyesight;



    public Cat(String color,int age,double eyesight) {
        super(color, age);
        this.eyesight = eyesight;
    }

    public double getEyesight() {
        return eyesight;
    }

    public void setEyesight(double eyesight) {
        this.eyesight = eyesight;
    }

    @Override
    public void introduce() {
        System.out.println("颜色："+super.getColor()+"\t年龄："+super.getAge()+"\t视力为："+eyesight);
    }
}
